﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    public class GraphPinCollection : List<GraphPin>
    {
        public GraphPin this[string name]
        {
            get
            {
                return this.Single(p => p.Name == name);
            }
        }
    }

    public class GraphPinCollection<T> : List<GraphPin<T>>
    {
        public GraphPin<T> this[string name]
        {
            get
            {
                return this.Single(p => p.Name == name);
            }
        }
    }
}
